﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SwitchMiner.Models
{
    public class SwitchModel
    {
        private string _minerName;
        private string _parameterName;
        private long _duration;

        public String MinerName
        {
            get { return _minerName; }
            set { _minerName = value; }
        }
        public String ParameterName
        {
            get { return _parameterName;}
            set {_parameterName = value;}
        }

        public long Duration
        {
            get { return _duration; }
            set { _duration = value; }
        }
        public SwitchModel(string minerName, string parameterName, long duration)
        {
            MinerName = minerName;
            ParameterName = parameterName;
            Duration = duration;

        }

        public override string ToString()
        {
            return "( " + Duration + " minutes) " + MinerName + " => " + ParameterName;
        }
    }
}
